hvm: RTC emulation - RTC_UIE/RTC_SET fix
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Nov 2007 19:07:46 +0000 (19:07 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Nov 2007 19:07:46 +0000 (19:07 +0000)
commit0d501a859896c20a2da0a0df35943b236d56473e
tree87ca39ec595b6a2fb0f627eeef2413dff23b3a68
parenta36b32e53f7d146757e84587fe70c65c7b0a35fc
hvm: RTC emulation - RTC_UIE/RTC_SET fix

This patch fixes a bug in the RTC code which appears to originate in
having written the emuated device following an incorrect
specification. VMware has (or had, at least, at the time we were still
testing on both VMWare and Xen) the same issue. In the current code,
when RTC_SET is set, RTC_UIE is cleared. This does not match the
behavior of real hardware, where the case is simply that no update
ended interrupts are sent as long as RTC_SET is set, but the UE ints
will resume as soon as RTC_SET is cleared and the clock update is
done. This little patch fixes this issue. In practicality, this means
OS/2 can now set the time without having the clock stop. I don't know
if any other guests have been affected by this issue.

From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/rtc.c